const menuDB = [
  { path: '/index', title: '首页', icon: 'home' },
  {
    title: '系统管理',
    icon: 'folder-o',
    children: [
			{ path: '/system/org', title: '组织管理' },
      { path: '/system/user', title: '用户管理' },
      { path: '/system/role', title: '角色管理' },
      { path: '/system/resource', title: '资源管理' }
    ]
  }
]

export default [
  {
    path: '/api/menu',
    method: 'post',
    handle ({ body }) {
      // const user = userDB.find(e => e.username === body.username && e.password === body.password)
      return {
        code: 0,
        data: {
          ...menuDB
        }
      }
    }
  }
]
